package cn.yerly.sakura.dao.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
/**
 * 订单状态变更信息
 * @author yerly
 *
 */
@Entity
public class OrderStateChange {
	@Id
	private Long id;
	@ManyToOne
	@JoinColumn(name="order_id")
	private Order order;
	private Integer type;
	private Date ctime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	@Override
	public String toString() {
		return "OrderStateChange [id=" + id + ", order=" + order + ", type="
				+ type + ", ctime=" + ctime + "]";
	}

}
